function adminValidate() {
	var flag = false;
	var admin_username = document.getElementById("admin_username").value;
	var admin_password = document.getElementById("admin_password").value;
	if (admin_username == "") {
		alert("管理员用户名不能为空!");
	} else if (admin_password == "") {
		alert("管理员密码不能为空!");
	} else {
		flag = true;
	}
	return flag;
};
function buildingValidate() {
	var flag = false;
	var building_name = document.getElementById("building_name").value;
	if (building_name == "") {
		alert("楼栋名称不能为空!");
	} else {
		flag = true;
	}
	return flag;
};
function departmentValidate() {
	var flag = false;
	var department_name = document.getElementById("department_name").value;
	var department_password = document.getElementById("department_password").value;
	if (department_name == "") {
		alert("物业部门名称不能为空!");
	} else if (department_password == "") {
		alert("物业部门密码不能为空!");
	} else {
		flag = true;
	}
	return flag;
};
function residentValidate() {
	var flag = false;
	var resident_name = document.getElementById("resident_name").value;
	var resident_password = document.getElementById("resident_password").value;
	if (resident_name == "") {
		alert("住户姓名不能为空!");
	} else if (resident_password == "") {
		alert("住户密码不能为空!");
	} else {
		flag = true;
	}
	return flag;
};
function complaintValidate() {
	var flag = false;
	var complaint_details = document.getElementById("complaint_details").value;
	if (complaint_details == "") {
		alert("投诉内容不能为空!");
	} else {
		flag = true;
	}
	return flag;
};
function repairValidate() {
	var flag = false;
	var repair_details = document.getElementById("repair_details").value;
	if (repair_details == "") {
		alert("报修内容不能为空!");
	} else {
		flag = true;
	}
	return flag;
};

